package com.ruoyi.DoctorSys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.DoctorSys.mapper.YishengMapper;
import com.ruoyi.DoctorSys.domain.Yisheng;
import com.ruoyi.DoctorSys.service.IYishengService;

/**
 * 医生Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-26
 */
@Service
public class YishengServiceImpl implements IYishengService 
{
    @Autowired
    private YishengMapper yishengMapper;

    /**
     * 查询医生
     * 
     * @param id 医生主键
     * @return 医生
     */
    @Override
    public Yisheng selectYishengById(Long id)
    {
        return yishengMapper.selectYishengById(id);
    }

    /**
     * 查询医生列表
     * 
     * @param yisheng 医生
     * @return 医生
     */
    @Override
    public List<Yisheng> selectYishengList(Yisheng yisheng)
    {
        return yishengMapper.selectYishengList(yisheng);
    }

    /**
     * 新增医生
     * 
     * @param yisheng 医生
     * @return 结果
     */
    @Override
    public int insertYisheng(Yisheng yisheng)
    {
        return yishengMapper.insertYisheng(yisheng);
    }

    /**
     * 修改医生
     * 
     * @param yisheng 医生
     * @return 结果
     */
    @Override
    public int updateYisheng(Yisheng yisheng)
    {
        return yishengMapper.updateYisheng(yisheng);
    }

    /**
     * 批量删除医生
     * 
     * @param ids 需要删除的医生主键
     * @return 结果
     */
    @Override
    public int deleteYishengByIds(Long[] ids)
    {
        return yishengMapper.deleteYishengByIds(ids);
    }

    /**
     * 删除医生信息
     * 
     * @param id 医生主键
     * @return 结果
     */
    @Override
    public int deleteYishengById(Long id)
    {
        return yishengMapper.deleteYishengById(id);
    }
}
